#include <iostream>

using std::cout;
using std::endl;

void test()
{
    //4 * 8 = 32
    //byte 1
    //除非设置为0，否则就是1
    bool flag = 1;
    cout << "flag = " << flag << endl;
    flag = 0;
    cout << "flag = " << flag << endl;
    flag = -1;
    cout << "flag = " << flag << endl;
    flag = 100;
    cout << "flag = " << flag << endl;

    cout << "sizeof(int) = " << sizeof(int) << endl;//4
    cout << "sizeof(bool) = " << sizeof(bool) << endl;//1
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

